package org.compactmvc.viewpatterns
{
	import org.compactmvc.patterns.Controller;
	import org.compactmvc.patterns.Model;

	public class AbstractViewComponentModel extends Model
	{
		protected var _viewComponent:AbstractViewComponent;
		
		public function AbstractViewComponentModel(name:String, controller:Controller, viewComponent:AbstractViewComponent)
		{
			super(name, controller);
			_viewComponent = viewComponent;
		}
		
		override public function removeHandler():void
		{
			_viewComponent = null;
		}
		
		protected function get viewComponent():AbstractViewComponent
		{
			return _viewComponent;
		}

	}
}